package com.example.demo.web.common.gateway;

import org.noear.solon.annotation.Component;
import org.noear.solon.annotation.Mapping;

/**
 * @author airhead
 */
@Component
@Mapping("/app-api/**")
public class AppGateway extends BaseGateway {
  @Override
  protected void register() {
    // 添加过滤器
    addFilters(beanWrap -> "appApi".equals(beanWrap.tag()));

    // 添加接口
    addBeans(beanWrap -> "appApi".equals(beanWrap.tag()));
  }
}
